package com.last.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.last.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoomInfoService extends IService<RoomInfo> {
    //商户的分页加条件查询
    PageResult<RoomInfo> search(PageDTO<RoomInfo> dataDTO);
    //添加商户
    public Result add(RoomInfo roomInfo);

    public Result undercarriage(Integer roomId,Integer status);

    // 获取房间详细信息
    RoomInfo getRoomInfoByRoomId(Integer roomId);

    //获取所有city
    List<City> getAllCity();
    // 获取房型信息列表
    public List<RoomInfo> getHouseDetailInfo(@Param("homeId") Integer homeId);

    //根据homeId获取area信息
    public City findCityByHomeId(Integer homeId);
}
